<?php 
	echo $this->element('reportcss');
 	if(empty($report)){?>
<div class="right_side_operate_area">
	<div class="right_side_title left">
		<h2>常熟领军人才<?php echo $type_name?>统计报表</h2>
	</div>
    <?php
    	$url_explode=explode("group=", $_SERVER["QUERY_STRING"]);
    	echo '<div class="right back_btn">';
		echo $html->link("导出报表","/reports/protypereport/".$pro_type."/1?group=".$url_explode[1]);
		echo '</div>';
	?> 
	<?php echo $this->element('reportgroup'); ?>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
    <div class="detail_info_panel">
        <div class="items_list">
        <?php }?>
        	<table border='1'>
	        	<?php 
	        		if(!empty($report)){
	        			echo "<div align='center'><h3>常熟领军人才".$type_name."统计报表</h3></div>";
	        		}
	        	?>
            	<tr>
                    <th>序号</th>
		 			<th>企业名称</th>
		 			<th>模块</th>
		 			<th>项目名称</th>
		 			<th>认定时间</th>
                </tr>
		 		<?php 
		 			$index = 0;
		 			foreach($companys as $company){
		 				$index++;
		 				$objpros = $company["CompTechnology"];
		 				$company_name = $company["SearchCompany"]["company_name"];
		 				$groupname = $grouplist[$company["SearchCompany"]["groupid"]];
		 				$objprocount = count($objpros);
						$i=0;
						if(!empty($objpros)){
							foreach($objpros as $objpro){
								echo "<tr>";
								if($i == 0){
									echo "<td align='center' rowspan='".$objprocount."'>".$index."</td>";
									echo "<td align='center' rowspan='".$objprocount."'>".$company_name."</td>";
								}
								echo "<td align='center' rowspan='".$objprocount."'>".$groupname."</td>";
								echo "<td align='center' >".$objpro["tname"]."</td>";
								$authorize_time = $objpro["authorize_time"];
								if(empty($authorize_time)){
									$authorize_time = $str->formatquantity($authorize_time);
								}else{
									$authorize_time = date("Y-m-d",strtotime($authorize_time));
								}
								echo "<td align='center' >".$authorize_time."</td>";
								echo "</tr>";
								$i++;
							}
						}
						if($i==0){
							echo "<tr>";
							echo "<td>".$index."</td>";
							echo "<td align='center'>".$company_name."</td>";
							echo "<td></td><td></td>";
							echo "</tr>";
						}
	 				}
		 			
		 		?>
            </table>
<?php if(empty($report)){?>
		</div>
    </div>
</div>
<?php }?>